package com.lp.service;

import com.lp.po.User;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-02-19 14:07
 */
public interface UserService {
    //登陆匹配
    User findUser(User user);
    //用户名匹配
    User findName(String username);
    //添加用户
    int addUser(User user);

    List<User> findUser();

    //根据名字查找用户
    User findByName(String name) throws Exception;
    //根据名字更新
    void updateById(String username,String password,Integer role,Integer userid);
    //根据用户名查找用户id
    User findUserIdWithUserName(String username);
    //admin账户更新密码
    void updateWhitPassword(String password);
    //用户账户更新密码
    void updatePasswordWithStudent(String password,String username);

    //根据用户名查找用户是否粗在
    User findUserByName(String username);

    //依据用户名查找userid
    int findUseridByStudentName(String username);
    //依据userid更新user
    void updateByUserId(String username,Integer userid);
}
